import request from '@/utils/request'

// 查询充值钻石兑换关系列表
export function listRecharge(data) {
  return request({
    url: '/admin/recharge/pageList',
    method: 'post',
    data: data
  })
}

// 查询充值钻石兑换关系详细
export function getRecharge(id) {
  return request({
    url: '/admin/recharge/query/' + id,
    method: 'get'
  })
}

// 新增充值钻石兑换关系
export function addRecharge(data) {
  return request({
    url: '/admin/recharge/add',
    method: 'post',
    data: data
  })
}

// 修改充值钻石兑换关系
export function updateRecharge(data) {
  return request({
    url: '/admin/recharge/update',
    method: 'post',
    data: data
  })
}

// 删除充值钻石兑换关系
export function delRecharge(id) {
  return request({
    url: '/admin/recharge/delete/' + id,
    method: 'delete'
  })
}

// 导出充值钻石兑换关系
export function exportRecharge(query) {
  return request({
    url: '/admin/recharge/export',
    method: 'get',
    params: query
  })
}
